import { IndexDto, ShowDto } from '@libs/common/dto';
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

import { DeviceRoad } from '../entities/device-road.entity';

export class IndexDeviceRoadDto extends IndexDto<DeviceRoad> {}

export class ShowDeviceRoadDto extends ShowDto {}

export class FindDeviceRoadDto {
  @ApiProperty({ description: '设备id' })
  @IsNotEmpty({ message: '设备id不能为空' })
  mcuid: string;
}
